Copies the content of the active window into a disk file